package com.hk.label;

import java.awt.Color;

import javax.swing.JLabel;

public class LabelName extends SuperLabel {
	private int x = 400;
	private int y = 605;
	private int w = 100;
	private int h = 50;
	
	public LabelName() {
		super("");
		SetLabelFont(30);
		BoundsLabel(x, y, w, h);
		label.setForeground(Color.black);
	}
	@Override
	public JLabel getLabel() {
		return label;
	}
	@Override
	public void ShowLabel() {
		BoundsLabel(x, y, w, h);
	}
	@Override
	public void HideLabel() {
		BoundsLabel(0, 0, 0, 0);
	}
	@Override
	public void UpdateLabel() {
		label.setText(pg.getName());
		ShowLabel();
	}
}
